package com.logos;

import com.logos.config.SpringConfig;
import com.logos.service.ResourcesService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class AppForAopCase {

    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
        ResourcesService resourcesService = ctx.getBean(ResourcesService.class);
        boolean result = resourcesService.openURL("http://com.logogs.bsJTB.com/rose", "bsJTB");
        System.out.println("result = " + result);
    }
}
